package br.com.projetandoo;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;


@ManagedBean
@RequestScoped
public class SomeBean {

	private String someProperty;

	@ManagedProperty(value="#{carroService}")
	private CarroService carroService;


	public String someActionControllerMethod() {
		someProperty = carroService.test();
		return("page-b");
	}


	public String getSomeProperty() {
		return(someProperty);
	}

	public void setSomeProperty(String someProperty) {
		this.someProperty = someProperty;
	}


	public CarroService getCarroService() {
		return carroService;
	}


	public void setCarroService(CarroService carroService) {
		this.carroService = carroService;
	}


}
